package com.ec.system.api.config;

import com.ec.system.api.modules.sys.feign.factory.SysUserFeignFallbackFactory;
import com.ec.system.api.modules.sys.feign.fallback.SysUserFeignFallback;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.annotation.Order;

/**
 * @author Eric Lee
 * @Description:
 */
@Configuration
@Order(-2147483638)
public class FallbackConfiguration {
    public FallbackConfiguration() {
    }

    @Bean
    public SysUserFeignFallback sysUserFeignFallback() {
        return new SysUserFeignFallback();
    }

    @Bean
    public SysUserFeignFallbackFactory sysUserFeignFallbackFactory() {
        return new SysUserFeignFallbackFactory();
    }
}
